package com.avril.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
	public static String parseDateToFullTime(Date date) {
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
		return dateFormat.format(date);
	}

	public static String parseDateToFullTimeByComma(Date date) {
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		return dateFormat.format(date);
	}

	public static void main(String[] args) {
		System.out.println(parseDateToFullTime(new Date()));
	}
}
